<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    #container {
        width: 100px;
        height: 100px;
        background-color: #bbffaa;
    }
</style>
<body>
<div id="container"></div>


<script>
    const target = document.getElementById("container")
    let rotation = 0
    function animation() {
        rotation += 0.1
        target.style.transform = `rotate(${rotation}deg)`
        requestAnimationFrame(animation)
    }
    requestAnimationFrame(animation)
</script>
</body>
</html>
